import { Tabs, TabItem } from '@aws-amplify/ui-react'; import { Example, ExampleCode } from '@/components/Example'; import { InstallScripts } from '@/components/InstallScripts.tsx'; import { ComponentExampleDemo, ReactExampleDemo, ThemeExampleDemo, } from './examples'; ## React and Amplify UI Amplify UI is designed to integrate seamlessly with the React framework so you can get started in no time. ### Installation If you haven't already, install `@aws-amplify/ui-react` with [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/): ### Quick start Here's all you need to get up and running: ```tsx file=./examples/ReactExampleCode.tsx ``` Copy/paste the code above into your React app, start the app, and look at that lovely Button! ### Components You can use all of Amplify UI's primitive components (e.g., `Button`, `Tabs`, `Flex`) right out-of-the-box. These are the same components we use to build our connected components such as the [Authenticator](/react/connected-components/authenticator). Please refer to each component's [documentation](/react/components/button) to see how they should be imported, configured and styled. ```tsx file=./examples/ComponentExampleCode.tsx ``` ### Theming Amplify UI ships with a default [theme](/react/theming) that you can customize to match the look and feel of your project. Remember to load the default styling by importing our CSS at the entry-point to your application (e.g., `src/App.js`). ```js import '@aws-amplify/ui-react/styles.css'; ``` To learn how to customize the appearance of all components in your application with a theme, see [theming](/react/theming). ```tsx file=./examples/ThemeExampleCode.tsx ```